package com.yy.blogdemo.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//  `id` bigint NOT NULL AUTO_INCREMENT,
//  `comment_counts` int DEFAULT NULL COMMENT '评论数量',
//  `create_date` bigint DEFAULT NULL COMMENT '创建时间',
//  `summary` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8_general_ci DEFAULT NULL COMMENT '简介',
//  `title` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8_general_ci DEFAULT NULL COMMENT '标题',
//  `view_counts` int DEFAULT NULL COMMENT '浏览数量',
//  `weight` int NOT NULL COMMENT '是否置顶',
//  `author_id` bigint DEFAULT NULL COMMENT '作者id',
//  `body_id` bigint DEFAULT NULL COMMENT '内容id',
//  `category_id` int DEFAULT NULL COMMENT '类别id',

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Article {


    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    private Long id;

    private String title;

    private String summary;

    private int commentCounts;

    private int viewCounts;

    /**
     * 作者id
     */
    private Long authorId;
    /**
     * 内容id
     */
    private Long bodyId;
    /**
     *类别id
     */
    private Long categoryId;

    /**
     * 置顶
     */
    private int weight = Article_Common;


    /**
     * 创建时间
     */
    private Long createDate;


}
